import 'dart:async';

import 'package:flutter/services.dart';

class FlutterKxCrypto {
  static const MethodChannel _channel =
      const MethodChannel('flutter_kx_crypto');

  static Future<String?> get platformVersion async {
    final String? version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static Future<String?> encrypt3DES(String key, String data) async{
    final String? encryptString = await _channel.invokeMethod('encrypt3DES' , <String,dynamic>{'data':data,'key':key});
    return  encryptString;
  }

  static Future<String?> decrypt3DES(String key, String data) async{

    final String? decryptString = await _channel.invokeMethod('decrypt3DES' , <String,dynamic>{'data':data,'key':key});
    return decryptString;
  }



}
